package classicalSATeaching;

public class SAInfo {
    static String name=null;
    static String txtFileName=null;
    static String imageFileName=null;
    static String methodFileName=null;

    public SAInfo(){
    }

    public SAInfo(String name){
        if("主程序-子程序".equals(name)){
            this.name=name;
            this.txtFileName="teachingtxt/1.txt";
            this.methodFileName="methodtxt/1.txt";
            this.imageFileName="image/1.png";
        }else if("面向对象".equals(name)){
            this.name=name;
            this.txtFileName="teachingtxt/2.txt";
            this.methodFileName="methodtxt/2.txt";
            this.imageFileName="image/2.png";
        }else if("事件系统".equals(name)){
            this.name=name;
            this.txtFileName="teachingtxt/3.txt";
            this.methodFileName="methodtxt/3.txt";
            this.imageFileName="image/3.png";
        }else if("管道-过滤器".equals(name)){
            this.name=name;
            this.txtFileName="teachingtxt/4.txt";
            this.methodFileName="methodtxt/4.txt";
            this.imageFileName="image/4.png";
        }
    }

}
